package com.qmx.launcher.activity.general;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;

import com.qmx.launcher.R;
import com.qmx.launcher.view.RadarView;

public class NetTestActivity extends Activity {

    private RadarView radarView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_net_test);

        radarView = (RadarView)findViewById(R.id.radar);

        findViewById(R.id.btn_start).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                radarView.start();
            }
        });

        findViewById(R.id.btn_stop).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                radarView.stop();
            }
        });
    }
}
